package com.lin.cms.dao;

import java.util.List;
import org.apache.ibatis.session.RowBounds;
import org.springframework.dao.DataAccessException;

import com.lin.cms.criteria.FtpCriteria;
import com.lin.cms.domain.Ftp;

public interface FtpMapper{
	
	Ftp selectByPrimaryKey(Integer ftpId) throws DataAccessException;
	
	List<Ftp> selectByCriteria(FtpCriteria criteria) throws DataAccessException;
	
	int deleteByPrimaryKey(Integer ftpId) throws DataAccessException;
	
	int deleteByCriteria(FtpCriteria criteria) throws DataAccessException;
	
	int insert(Ftp ftp) throws DataAccessException;
	
	int updateByPrimaryKeySelective(Ftp ftp) throws DataAccessException;
	
	int updateByPrimaryKey(Ftp ftp) throws DataAccessException;
	
	List<Ftp> selectByPage(FtpCriteria criteria,RowBounds bounds) throws DataAccessException;
	 
	int countByCriteria(FtpCriteria criteria) throws DataAccessException;
    
}
